package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.Salary;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 学海无涯
 * @since 2021-11-15
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 分页获取所有员工
     * @param page
     * @param employee
     * @param beginDataScope
     * @return
     */
    IPage<Employee> getAllEmployee(@Param("page") Page<Employee> page,@Param("employee") Employee employee,@Param("beginDataScope") LocalDate[] beginDataScope);

    /**
     * 查看员工详情
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工的工资账套
     */
    IPage<Employee> getALLEmployeeWithSalary(Page<Employee> page);
}
